import { Loading } from 'element-ui';
export default {
	setHeader: function(header) {
		document.querySelector('title').innerHTML = header;
	},
	showLoading() {
		return Loading.service({
			fullscreen: true,
			text: '拼命加载中...',
			spinner: 'el-icon-loading',
			background: 'rgba(255, 255, 255, 0.8)'
		});
	}
}